<template>
  <div>
    <button @click="isShow = !isShow">显示/隐藏</button>
    <transition
      enter-active-class="animate__rollIn"
      leave-active-class="animate__hinge"
    >
      <h1 class="animate__animated" v-show="isShow">你好</h1>
    </transition>
  </div>
</template>

<script>
  import 'animate.css'
  export default {
    name:'App',
    data() {
      return {
        isShow:true
      }
    },
  }
</script>

<style>
  h1 {
    background-color: orange;
  }
</style>